package com.chixing.day05_oop.static_demo;

public class Student {
    //类加载：只加载一次到JVM
    //类加载的时候，就已经运行了
    public static String universityName = "苏州大学"; //类变量
    static {
        System.out.println("static 代码块");
    }

    //先创建变量，对象初始化的时候才有
    public int stuNo; //实例变量
    public String stuName;//实例变量
    public Student(){
        System.out.println("student 构造函数");
    }
    //对象名.方法
    public void study(){
        this.stuNo = 10;
        this.stuName = "mimi";

        universityName= "";

    }
    //类名.方法名
    public static void fun(){
        universityName ="";
//        stuNo = 101 ; //error
    }

    public class SortUtil{


    }

}
